export interface DataListParams {
    title?: string
    name?: string
    limit: string
    page: string
}

/**
 * @param {} _id 视频id
 * @param {} title 标题
 * @param {} desc 描述
 * @param {} uid 用户信息
 * @param {} cover 封面
 * @param {} file url
 * @param {} lookNum 视频状态
 * @param {} category 视频分类
 * @param {} status 状态
 */
export interface DataItem {
    _id: string
    title: string
    desc: string
    uid: Authod
    cover: string
    file: string
    category: { _id: string; name: string }[]
    status: number
    lookNum: number
    updatedAt: string
}

export interface Authod {
    avatart?: string
    phone?: string
    desc?: string
    type?: string
    username: string
    user_id: string
}

export interface DataListResultModel {
    count: number
    list: Array<DataItem>
}

/**
 * @param {} _id 视频id
 * @param {} status 视频状态
 */
export interface CheckParams {
    _id: string
    status: number
}

/**
 * @param {} _id 视频id
 */
export interface DeleteParams {
    _id: string
}
